import { http } from "./http";
export type LoginResult = {
  code: number;
  expire: string;
  msg: string;
  refresh: string;
  token: string;
}

export type LoginParams = {
  userName: string;
  passWord: string;
}


export const userLogin = (params: LoginParams) => {
  return http.post<LoginResult>('api/login', params)
}